class rename_menu :
    def __init__ ( self , mediator ) :
        self . _awake = False
        self . _mediator = mediator
    def show_rename_menu ( self ) :
        self . _awake = True
        self . _mediator . configure_title_text_for_browser ( self . _mediator . localization_rename_menu_title ( ) )
        self . _mediator . configure_action_text_for_browser ( self . _mediator . localization_rename_menu_rename ( ) )
        self . _mediator . configure_action_title_name_text_for_browser ( self . _mediator . localization_rename_menu_new_name ( ) )
        self . _mediator . configure_only_unique_names_mode_for_browser ( self . _mediator . localization_rename_menu_already_exists ( ) )
        self . _mediator . configure_title_text_when_no_entries_for_browser ( self . _mediator . localization_rename_menu_no_entries ( ) )
        self . _mediator . configure_remove_action_part_when_no_entries_for_browser ( )
        self . _mediator . show_browser ( )
    def hide_rename_menu ( self ) :
        self . _awake = False
        self . _mediator . hide_browser ( )
    def on_browser_return ( self ) :
        if self . _awake :
            self . _mediator . on_rename_menu_return ( )
    def on_browser_action ( self ) :
        if self . _awake :
            self . _mediator . rename_base_in_browser ( )
